AddMultiSerialNoRecords

SoftwareShield CheckPoint™ License Server > CheckPoint™ License Server Interfaces > CheckPoint_Webservice_References > AddMultiSerialNoRecords

## AddMultiSerialNoRecords

The AddMultiSerialNoRecords function will add multiple Serial Numbers into the CheckPoint Database.

###### Syntax

TMultiRecordResponse * AddMultiSerialNoRecords( TCheckPointSNSerialRecords * ASerialNoRecordCollection, BSTR ASessionID ) ;

###### Parameters

ASerialNoRecordCollection

[IN] This is a TCheckPointSNSerialRecords class which contains multiple serial numbers to enter into the CheckPoint Database. The fields of interest are:

- SNRecordArray- this field is an array of TCheckPointSNSerialRecord. The fields of interest for this class are:

- CheckPointUserID - the user id of the Checkpoint User who generated the serial number. Note that this is the CheckPoint User, not the End User.

- LicenseID - The license ID that is associated with this Serial Number

- SerialNumber - The Serial Number that was generated.

- AuthDefIDNo - the Authorization Definition ID that is associated to this Serial Number

- AuthParameter - If a parameter is necessary for the Authorization Definition, then you would declare it in this field.

- TotalActivationsPermitted - the number of permitted activations allowed for the serial number

- OverflowActivationsPermitted - the number of overflows allowed for the serial number

- ActivationsConsumed - the number of activations consumed (Under regular circumstances, this should be 0)

- OrderNo- the order number that you wish to associate with this Serial Number

ASessionID

[IN] This is the session ID of the logged in user.

###### Remarks

The CheckPointUserID is used to keep track of who generated the Serial Number. This should not be mistaken for the End User who will be using the serial number.

Also note that this function does not generate a serial number. It only adds the serial number into the database. Use GenerateSN or GenerateSNs if you wish to generate a serial number.

Only CheckPoint administrators are allowed to use this function.

###### Return Value

Returns the custom class TMultiRecordResponse. The fields of interest that is related to this method are:

- Success- this will return false if an exception occurred, otherwise true is returned

- NumRecordsAdded- the number records that was successful added.

- ErrorMessage- if an exception occurred, the associated error message will be found in this field.

###### Function Information

Exposed By Interface: | "ICheckPointService"
Exposed In ISAPI DLL: | "checkpoint.dll"